<template>
  <div class="page-404">
    <div class="page-404-content">
      <div class="page-404-content-title">
        <img :src="errGif" alt="404">
      </div>
      <div class="page-404-content-subtitle">
        404
        <div>抱歉，您访问的页面不存在</div>
      </div>
      <div class="page-404-content-button">
        <el-button type="primary" style="font-size: 18px" link @click="goHome">返回首页</el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
import router from "@/router";
import errGif from '@/assets/404_images/animation.gif'
import {setKeyValue} from "@/utils/auth";
name = 'Page404'
const  goHome = () => {
  setKeyValue('route','/index')
  router.push('/index')
}
</script>

<style scoped>
.page-404{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.page-404-content-button{
  margin-top: 20px;
}
</style>
